//
//  ShowOrderDetailCell.m
//  YunGou
//
//  Created by macbook on 16/5/24.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "ShowOrderDetailCell.h"
#import "OrderDetailPhotoView.h"
#import "NSString+Frame.h"
@interface ShowOrderDetailCell ()
@property (weak, nonatomic) IBOutlet UILabel *commentLabel;
@property (weak, nonatomic) IBOutlet OrderDetailPhotoView *photoView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *commentHeightConstraint;
@end

@implementation ShowOrderDetailCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setShowOrderModel:(ShowOrderModel *)showOrderModel{
    _commentHeightConstraint.constant = [showOrderModel.sd_content heightWithFont:[UIFont systemFontOfSize:16] withinWidth:ScreenWidth - 32];
    _commentLabel.text = showOrderModel.sd_content;
    [_photoView setImageArray:showOrderModel.sd_photolist withInWidth:ScreenWidth - 32];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
